package com.lagou.service;

import com.lagou.service.fallback.UserServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by IntelliJ IDEA.
 * User: Yangdx.
 * Date: 2020/7/25.
 * Time: 3:13.
 * Tags: Code, we are serious.
 */
@FeignClient(name = "service-user", path = "/user", fallback = UserServiceClientFallback.class)
public interface UserServiceClient {
    @GetMapping("/info/{token}")
    public String getEmailByToken(@PathVariable String token);
}

